home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 3 / Gold Medal Software - Volume 3 (Gold Medal) (1994).iso / bbsutils / dlprm100.arj / INSTALL.BAT < prev   
DOS Batch File  |  1994-03-14  |  2KB  |  72 lines

  1. @echo off
  2.  
  3. rem %1 = filename of PCBTEXT to modify
  4. rem %2 = path to where PPE was unzipped to
  5. rem %3-%9 = command line parameters
  6.  
  7. if "%1"=="" goto MissPCBTXT
  8. if "%2"=="" goto MissPPELoc
  9. if not exist %1 goto TXTNotFnd
  10. if not exist %2\DLPROMPT.PPE goto PPENotFnd
  11. goto Modify
  12.  
  13. :TXTNotFnd
  14. echo ┌────────────────────────────────────────────────────────────────────────┐
  15. echo │ The filename you specified for PCBTEXT could not be found.             │
  16. echo └────────────────────────────────────────────────────────────────────────┘
  17. goto end
  18.  
  19. :PPENotFnd
  20. if exist %2DLPROMPT.PPE goto end
  21. echo ┌────────────────────────────────────────────────────────────────────────┐
  22. echo │ Could not find PPE in the installation directory specified by you.     │
  23. echo └────────────────────────────────────────────────────────────────────────┘
  24. goto end
  25.  
  26. :MissPCBTXT
  27. echo ┌────────────────────────────────────────────────────────────────────────┐
  28. echo │ You must specify the PCBTEXT file to edit (e.g., C:\PCB\GEN\PCBTEXT)   │
  29. echo └────────────────────────────────────────────────────────────────────────┘
  30. goto Usage
  31.  
  32. :MissPPELoc
  33. echo ┌────────────────────────────────────────────────────────────────────────┐
  34. echo │ You must specify the directory where your PPE is (e.g., C:\PCB\PPE\)   │
  35. echo └────────────────────────────────────────────────────────────────────────┘
  36. goto Usage
  37.  
  38. :Usage
  39. echo.
  40. echo Syntax:
  41. echo.
  42. echo    INSTALL D:\PATH\PCBTEXT D:\PCB\PPE /EXPERT /SYSOP
  43. echo.
  44. echo The /EXPERT and /SYSOP parameters are not required but they are case
  45. echo sensitive.
  46. echo.
  47. echo The first parameter is the location of your PCBTEXT file.  The second
  48. echo parameter is the location where you uncompressed the DLPROMPT archive.
  49. echo.
  50. goto end
  51.  
  52. :Modify
  53.  
  54. if "%3"==""        SET PARAMS=
  55. if "%3"=="/SYSOP"  SET PARAMS= /SYSOP
  56. if "%3"=="/sysop"  SET PARAMS= /SYSOP
  57. if "%3"=="/EXPERT  SET PARAMS= /EXPERT
  58. if "%3"=="/expert" SET PARAMS= /EXPERT
  59.  
  60. if "%4"=="/SYSOP"  SET PARAMS= %PARAMS% /SYSOP
  61. if "%4"=="/sysop"  SET PARAMS= %PARAMS% /SYSOP
  62. if "%4"=="/EXPERT" SET PARAMS= %PARAMS% /EXPERT
  63. if "%4"=="/expert" SET PARAMS= %PARAMS% /EXPERT
  64.  
  65. MKPCBTXT %1 /I:61 "!%2DLPROMPT.PPE%PARAMS%"
  66.  
  67. SET PARAMS=
  68.  
  69. :end
  70.  
  71.  
  72.